.class public Lcom/opongo/blogapp/activities/CategoryListActivity;
.super Landroid/app/ListActivity;
.source "CategoryListActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/opongo/blogapp/activities/CategoryListActivity$downloadNewPostsAsyncTask;
    }
.end annotation


# static fields
.field protected static final CATCOLUMNS:[Ljava/lang/String; = null

#the value of this static final field might be set in the static constructor
.field public static final DEBUG:Z = false

.field protected static final IDS:[I = null

.field public static final PREFS_NAME:Ljava/lang/String; = "BlogApp"

.field private static final TAG:Ljava/lang/String;


# instance fields
.field private apiManager:Lcom/opongo/blogapp/manager/APIManager;

.field private cat_parent:I

.field private cat_should_update:Z

.field private cursor:Landroid/database/Cursor;

.field private dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

.field private editor:Landroid/content/SharedPreferences$Editor;

.field private mAdapter:Lcom/opongo/blogapp/adapter/CategoryPostListAdapter;

.field private query:Ljava/lang/String;

.field private receiver:Landroid/content/BroadcastReceiver;

.field private receiver1:Landroid/content/BroadcastReceiver;

.field private receiver2:Landroid/content/BroadcastReceiver;

.field private settings:Landroid/content/SharedPreferences;

.field private show_push_enable:Z


# direct methods
.method static constructor <clinit>()V
    .locals 4

    .prologue
    const/4 v3, 0x2

    .line 31
    sget-boolean v0, Lcom/opongo/blogapp/AbaSettings;->DEBUG:Z

    sput-boolean v0, Lcom/opongo/blogapp/activities/CategoryListActivity;->DEBUG:Z

    .line 32
    const-class v0, Lcom/opongo/blogapp/activities/CategoryListActivity;

    .line 33
    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    .line 32
    sput-object v0, Lcom/opongo/blogapp/activities/CategoryListActivity;->TAG:Ljava/lang/String;

    .line 53
    const/4 v0, 0x6

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 54
    const-string v2, "_id"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "id"

    aput-object v2, v0, v1

    .line 55
    const-string v1, "cat_parent"

    aput-object v1, v0, v3

    const/4 v1, 0x3

    const-string v2, "cat_name"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    .line 56
    const-string v2, "cat_enable"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "cat_show_enable"

    aput-object v2, v0, v1

    .line 53
    sput-object v0, Lcom/opongo/blogapp/activities/CategoryListActivity;->CATCOLUMNS:[Ljava/lang/String;

    .line 58
    new-array v0, v3, [I

    fill-array-data v0, :array_0

    sput-object v0, Lcom/opongo/blogapp/activities/CategoryListActivity;->IDS:[I

    .line 29
    return-void

    .line 58
    nop

    :array_0
    .array-data 0x4
        0x14t 0x0t 0x8t 0x7ft
        0x16t 0x0t 0x8t 0x7ft
    .end array-data
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 29
    invoke-direct {p0}, Landroid/app/ListActivity;-><init>()V

    .line 39
    iput v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_parent:I

    .line 50
    iput-boolean v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_should_update:Z

    .line 51
    iput-boolean v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->show_push_enable:Z

    .line 29
    return-void
.end method

.method static synthetic access$0(Lcom/opongo/blogapp/activities/CategoryListActivity;)Lcom/opongo/blogapp/manager/APIManager;
    .locals 1
    .parameter

    .prologue
    .line 38
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->apiManager:Lcom/opongo/blogapp/manager/APIManager;

    return-object v0
.end method

.method static synthetic access$1(Lcom/opongo/blogapp/activities/CategoryListActivity;)Lcom/opongo/blogapp/manager/DatabaseManager;
    .locals 1
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    return-object v0
.end method

.method static synthetic access$2()Ljava/lang/String;
    .locals 1

    .prologue
    .line 32
    sget-object v0, Lcom/opongo/blogapp/activities/CategoryListActivity;->TAG:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/opongo/blogapp/activities/CategoryListActivity;)Lcom/opongo/blogapp/adapter/CategoryPostListAdapter;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->mAdapter:Lcom/opongo/blogapp/adapter/CategoryPostListAdapter;

    return-object v0
.end method

.method static synthetic access$4(Lcom/opongo/blogapp/activities/CategoryListActivity;)Landroid/content/SharedPreferences;
    .locals 1
    .parameter

    .prologue
    .line 47
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->settings:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method static synthetic access$5(Lcom/opongo/blogapp/activities/CategoryListActivity;)Landroid/content/SharedPreferences$Editor;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->editor:Landroid/content/SharedPreferences$Editor;

    return-object v0
.end method

.method static synthetic access$6(Lcom/opongo/blogapp/activities/CategoryListActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-boolean v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->show_push_enable:Z

    return v0
.end method

.method static synthetic access$7(Lcom/opongo/blogapp/activities/CategoryListActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 50
    iput-boolean p1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_should_update:Z

    return-void
.end method

.method static synthetic access$8(Lcom/opongo/blogapp/activities/CategoryListActivity;)Landroid/database/Cursor;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 11
    .parameter "savedInstanceState"

    .prologue
    const/4 v10, 0x0

    .line 63
    sget-boolean v0, Lcom/opongo/blogapp/activities/CategoryListActivity;->DEBUG:Z

    if-eqz v0, :cond_0

    .line 64
    sget-object v0, Lcom/opongo/blogapp/activities/CategoryListActivity;->TAG:Ljava/lang/String;

    const-string v1, "*** create ***"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 66
    :cond_0
    invoke-super {p0, p1}, Landroid/app/ListActivity;->onCreate(Landroid/os/Bundle;)V

    .line 68
    const v0, 0x7f030004

    invoke-virtual {p0, v0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->setContentView(I)V

    .line 70
    const-string v0, "BlogApp"

    invoke-virtual {p0, v0, v10}, Lcom/opongo/blogapp/activities/CategoryListActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->settings:Landroid/content/SharedPreferences;

    .line 71
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->settings:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->editor:Landroid/content/SharedPreferences$Editor;

    .line 73
    new-instance v0, Lcom/opongo/blogapp/manager/APIManager;

    invoke-direct {v0, p0}, Lcom/opongo/blogapp/manager/APIManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->apiManager:Lcom/opongo/blogapp/manager/APIManager;

    .line 76
    invoke-virtual {p0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v8

    .line 79
    .local v8, extras:Landroid/os/Bundle;
    if-eqz v8, :cond_2

    .line 81
    const-string v0, "CAT_PARENT"

    invoke-virtual {v8, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 82
    const-string v0, "CAT_PARENT"

    invoke-virtual {v8, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_parent:I

    .line 83
    :cond_1
    const-string v0, "SHOWPUSH"

    invoke-virtual {v8, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 84
    const-string v0, "SHOWPUSH"

    invoke-virtual {v8, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->show_push_enable:Z

    .line 87
    :cond_2
    new-instance v0, Lcom/opongo/blogapp/manager/DatabaseManager;

    const-string v1, "categories"

    .line 88
    const-string v2, "INSERT INTO categories (id,cat_name,cat_parent,cat_enable,cat_new,cat_child_count,cat_show_enable) VALUES (?,?,?,?,?,?,?);"

    invoke-direct {v0, p0, v1, v2}, Lcom/opongo/blogapp/manager/DatabaseManager;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 87
    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    .line 90
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "SELECT * FROM categories WHERE cat_parent = "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 91
    iget v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_parent:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " ORDER BY "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 92
    const-string v1, "cat_name"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " ASC"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 90
    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->query:Ljava/lang/String;

    .line 95
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    iget-object v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->query:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/opongo/blogapp/manager/DatabaseManager;->query(Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cursor:Landroid/database/Cursor;

    .line 96
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cursor:Landroid/database/Cursor;

    invoke-virtual {p0, v0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->startManagingCursor(Landroid/database/Cursor;)V

    .line 98
    new-instance v0, Lcom/opongo/blogapp/adapter/CategoryPostListAdapter;

    .line 99
    const v3, 0x7f030003

    iget-object v4, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cursor:Landroid/database/Cursor;

    sget-object v5, Lcom/opongo/blogapp/activities/CategoryListActivity;->CATCOLUMNS:[Ljava/lang/String;

    sget-object v6, Lcom/opongo/blogapp/activities/CategoryListActivity;->IDS:[I

    iget-boolean v7, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->show_push_enable:Z

    move-object v1, p0

    move-object v2, p0

    invoke-direct/range {v0 .. v7}, Lcom/opongo/blogapp/adapter/CategoryPostListAdapter;-><init>(Landroid/app/Activity;Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[IZ)V

    .line 98
    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->mAdapter:Lcom/opongo/blogapp/adapter/CategoryPostListAdapter;

    .line 101
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->mAdapter:Lcom/opongo/blogapp/adapter/CategoryPostListAdapter;

    invoke-virtual {p0, v0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->setListAdapter(Landroid/widget/ListAdapter;)V

    .line 103
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v0

    if-lez v0, :cond_3

    .line 104
    invoke-virtual {p0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    .line 105
    const v1, 0x7f070017

    invoke-virtual {p0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    .line 104
    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v9

    .line 106
    .local v9, toast:Landroid/widget/Toast;
    invoke-virtual {v9}, Landroid/widget/Toast;->show()V

    .line 109
    .end local v9           #toast:Landroid/widget/Toast;
    :cond_3
    new-instance v0, Lcom/opongo/blogapp/activities/CategoryListActivity$downloadNewPostsAsyncTask;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity$downloadNewPostsAsyncTask;-><init>(Lcom/opongo/blogapp/activities/CategoryListActivity;Lcom/opongo/blogapp/activities/CategoryListActivity$downloadNewPostsAsyncTask;)V

    new-array v1, v10, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity$downloadNewPostsAsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 111
    new-instance v0, Lcom/opongo/blogapp/activities/CategoryListActivity$1;

    invoke-direct {v0, p0}, Lcom/opongo/blogapp/activities/CategoryListActivity$1;-><init>(Lcom/opongo/blogapp/activities/CategoryListActivity;)V

    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver:Landroid/content/BroadcastReceiver;

    .line 126
    new-instance v0, Lcom/opongo/blogapp/activities/CategoryListActivity$2;

    invoke-direct {v0, p0}, Lcom/opongo/blogapp/activities/CategoryListActivity$2;-><init>(Lcom/opongo/blogapp/activities/CategoryListActivity;)V

    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver1:Landroid/content/BroadcastReceiver;

    .line 141
    new-instance v0, Lcom/opongo/blogapp/activities/CategoryListActivity$3;

    invoke-direct {v0, p0}, Lcom/opongo/blogapp/activities/CategoryListActivity$3;-><init>(Lcom/opongo/blogapp/activities/CategoryListActivity;)V

    iput-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver2:Landroid/content/BroadcastReceiver;

    .line 153
    return-void
.end method

.method public onDestroy()V
    .locals 1

    .prologue
    .line 238
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v0}, Lcom/opongo/blogapp/manager/DatabaseManager;->close()V

    .line 239
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->setListAdapter(Landroid/widget/ListAdapter;)V

    .line 240
    invoke-super {p0}, Landroid/app/ListActivity;->onDestroy()V

    .line 241
    return-void
.end method

.method protected onListItemClick(Landroid/widget/ListView;Landroid/view/View;IJ)V
    .locals 0
    .parameter "l"
    .parameter "v"
    .parameter "position"
    .parameter "id"

    .prologue
    .line 161
    invoke-super/range {p0 .. p5}, Landroid/app/ListActivity;->onListItemClick(Landroid/widget/ListView;Landroid/view/View;IJ)V

    .line 162
    return-void
.end method

.method public onPause()V
    .locals 2

    .prologue
    .line 221
    iget-object v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 222
    iget-object v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver1:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 223
    iget-object v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver2:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 225
    iget-boolean v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_should_update:Z

    if-eqz v1, :cond_0

    .line 226
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->cat_should_update:Z

    .line 227
    invoke-virtual {p0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->saveCatsOnServer()V

    .line 229
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.opongo.postsShouldRefresh"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 230
    .local v0, intent:Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lcom/opongo/blogapp/activities/CategoryListActivity;->sendBroadcast(Landroid/content/Intent;)V

    .line 233
    .end local v0           #intent:Landroid/content/Intent;
    :cond_0
    invoke-super {p0}, Landroid/app/ListActivity;->onPause()V

    .line 234
    return-void
.end method

.method public onResume()V
    .locals 3

    .prologue
    .line 209
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    if-eqz v0, :cond_0

    .line 210
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v0}, Lcom/opongo/blogapp/manager/DatabaseManager;->reopen()V

    .line 212
    :cond_0
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver:Landroid/content/BroadcastReceiver;

    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "com.opongo.cat_set_enable"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 213
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver1:Landroid/content/BroadcastReceiver;

    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "com.opongo.cat_show_children"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 214
    iget-object v0, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->receiver2:Landroid/content/BroadcastReceiver;

    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "com.opongo.cat_open_posts"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Lcom/opongo/blogapp/activities/CategoryListActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 216
    invoke-super {p0}, Landroid/app/ListActivity;->onResume()V

    .line 217
    return-void
.end method

.method public saveCatsOnServer()V
    .locals 3

    .prologue
    .line 202
    iget-object v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    iget-boolean v2, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->show_push_enable:Z

    invoke-virtual {v1, v2}, Lcom/opongo/blogapp/manager/DatabaseManager;->getCategoriesStatusAsJSON(Z)Ljava/lang/String;

    move-result-object v0

    .line 203
    .local v0, cats_string:Ljava/lang/String;
    iget-object v1, p0, Lcom/opongo/blogapp/activities/CategoryListActivity;->apiManager:Lcom/opongo/blogapp/manager/APIManager;

    invoke-virtual {v1, v0}, Lcom/opongo/blogapp/manager/APIManager;->saveCategoriesOnServer(Ljava/lang/String;)Lorg/json/JSONObject;

    .line 205
    return-void
.end method
